package org.jordens.jdbcspy.sync;

import java.util.*;

/**
 * A DataUpdater is notified by a DataStreamer and is responsible for actually
 * doing something with updated JDBCSpyRecords.
 *
 * See the QueriesTablePanel and QueriesPerSecondPanel for example implementations
 * of DataUpdaters.
 *
 * @author Adam Jordens
 */
public interface DataUpdater
{
    /**
     * @param jdbcSpyRecords
     */
    void update(List<JDBCSpyRecord> jdbcSpyRecords);

    /**
     * Reset any internal state of this DataUpdater.
     */
    void reset();
}
